import http from "@/scripts/http"


export async function getFaultRecord(data: any) {
  const res = await http<FaultRecordDto[]>({ url: `/api/fault-handle`, method: 'POST', data })
  return res.data
}

export async function addFaultRecord(data: any) {
  const res = await http<FaultRecordDto>({ url: `/api/fault-handle/add`, method: 'POST', data })
  return res.data
}
